
// Application entry point.
function init() {
    
    var template = '<div bindings="event:klik:click">' +
                       '<div><img bindings="prop:image:src"/></div>' +
                       '<div bindings="ref:helloNode,prop:message:textContent"></div>' +
                   '</div>';
    var fragment = Fragment.create(template, {
        klik: function() {
            this.prop("message", "I was clicked!");
        },
        image: "Icon.png",
        message: "Hello World!"
    }, document.body);
    fragment.prop("message", "Moi Maailma!");
    console.dir(fragment);
    //Fragment.destroy(fragment);
    
}
